﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MarketingManagement.aspx.cs" Inherits="AnalyseCRM.Operation.MarketingManagement" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>证券行业分析型客户关系管理之市场营销</title>
    <link href="../Styles/index.css" rel="stylesheet" type="text/css" />
    <link href="../Styles/style.css" rel="stylesheet" type="text/css" />
    <link href="/Styles/common.css" rel="stylesheet" type="text/css" /> 
    <script type="text/javascript" src="../Scripts/Tab.js"></script>
    <script type="text/javascript" src="../Scripts/Markettab.js"></script>
    <script type="text/javascript" src="../Scripts/Common.js"></script>
    <script type="text/javascript" src="../Scripts/jquery-ui-1.9.1.custom/js/jquery-1.8.2.js"></script>
    <script type="text/javascript" src="../Highcharts/js/highcharts.js"></script>
    <script type="text/javascript" src="../Highcharts/js/modules/exporting.js"></script>
    <script type="text/javascript" language="javascript">
        $(function () {
            $("#exportoutdata").attr('disabled', eval('true'));
            $("#marketingpg").attr('disabled', eval('true'));
            BindDictSelect("3", "#marketingname");
            $("#allfoundcon input[type='checkbox']").each(function () {
                $(this).change(function () {
                    var ohtm = "";
                    $("#allfoundcon input[type='checkbox']").each(function () {
                        if ($(this).attr("checked") == "checked") {
                            switch ($(this).attr("title")) {
                                case "conditionno":
                                    if ($(this).attr("name") == "jjkqgmsx") {
                                        ohtm += '【' + $(this).next().text() + ' '
                                                     + $("#jjkqselect").find('option:selected').text() + '】';
                                    }
                                    else {
                                        ohtm += '【' + $(this).next().text() + '】';
                                    }
                                    break;
                                case "conditiontwo":
                                    if ($(this).next().next().attr("type") == "radio") {
                                        ohtm += '【' + $(this).next().text() + $("input[name='rd']:checked").attr("txt") + '】';
                                    }
                                    else if ($(this).attr("name") == "xgsgcheckbox") {
                                        ohtm += '【' + $(this).next().text() + $(this).nextAll().find("option:selected").text() + "】";
                                    }
                                    else {
                                        ohtm += '【' + $(this).next().text()
                                                + $(this).next().next().val() + '-'
                                                + $(this).next().next().next().val()
                                        ohtm += '】';
                                    }
                                    break;
                                case "conditionthree":
                                    ohtm += '【' + $(this).next().text()
                                                + $(this).nextAll().find("option:selected").text() + ' '
                                                + $(this).next().next().next().val() + '-'
                                                + $(this).next().next().next().next().val();
                                    ohtm += '】';
                                    break;
                                default:
                                    break;
                            };
                        }
                    });
                    $("#con001 input[type='checkbox']").each(function () {
                        if ($(this).attr("checked") == "checked") {
                            ohtm += '【' + $(this).next().text() + '=\'' + $(this).attr('value') + '\'】';
                        }
                    });
                    $("#con002 input[type='checkbox']").each(function () {
                        if ($(this).attr("checked") == "checked") {
                            ohtm += '【' + $(this).next().text() + '=\'' + $(this).attr('value') + '\'】';
                        }
                    });
                    $("#displayselcon").html(ohtm);
                });
            });  //allfoundcon input[type='checkbox']
            //输入验证
            $("#allfoundcon input[type='text']").each(function () {
                $(this).val("0");
                $(this).bind('change', function () {
                    if (!testmoney($(this).val())) {
                        $(this).focus();
                        alert("只能输入整数或者小数！");
                    }
                });
            });  //allfoundcon input[type='text']
            
        })  // end of document
        function foundbutclick() {
            if ($("#allfoundcon input[type='checkbox']:checked").length == 0) { 
                alert("请选查询条件！");
                return false;
            }
            SearchQuery();    
            createchanelchart();
            createsalepartmentchart();
        }
        //获取所有选中的复选框
        function SearchQuery(cPage, pSize) {
            if (!arguments[0]) cPage = _cPage;
            if (!arguments[1]) pSize = _pSize;

            var foundstr = "";
            if (($("#byyxcheckbox").attr("checked") == "checked") & ($("#xyyxcheckbox").attr("checked") != "checked")) {
                foundstr = "1|";
            }
            else if (($("#byyxcheckbox").attr("checked") != "checked") & ($("#xyyxcheckbox").attr("checked") == "checked")) {
                foundstr = "2|";
            }
            else if (($("#byyxcheckbox").attr("checked") != "checked") & ($("#xyyxcheckbox").attr("checked") == "checked")) {
                foundstr = "3|";
            }
            $("#allfoundcon input[type='checkbox']").each(function () {
                if ($(this).attr("checked") == "checked") {
                    switch ($(this).attr("title")) {
                        case "conditionno":
                            if ($(this).attr("name") == "jjkqgmsx") {
                                foundstr += '(' + $(this).attr('value') + '>' + $("#jjkqselect").find('option:selected').val() + ') and ';
                            }                            
                            else {
                                foundstr += '(' + $(this).attr('name') + '=\'' + $(this).attr('value') + '\') and ';
                            }
                            break;
                        case "conditiontwo":
                            if ($(this).next().next().attr("type") == "radio") {
                                foundstr += '(' + $(this).attr('value') + '=' + $("input[name='rd']:checked").attr("value") + ') and ';
                            }
                            else if ($(this).attr("name") == "xgsgcheckbox") {                                
                                foundstr += '(' + $(this).attr('value') + '=' + $(this).nextAll().find("option:selected").val() + ") and ";
                            }
                            else {
                                foundstr += '(' + $(this).attr('value') + '>' + $(this).next().next().val() + ' and '
                                          + $(this).attr('value') + '<' + $(this).next().next().next().val() + ') and ';
                            }
                            break;
                        case "conditionthree":
                            foundstr += '(' + $(this).attr('value') + $(this).nextAll().find("option:selected").val()
                                      + '>' + $(this).next().next().next().val() + ' and '
                                      + $(this).attr('value') + $(this).nextAll().find("option:selected").val()
                                      + '<' + $(this).next().next().next().next().val() + ') and ';
                            break;
                        default:
                            break;
                    };
                }
            });
            $("#con001 input[type='checkbox']").each(function () {
                if ($(this).attr("checked") == "checked") {
                   foundstr += '(' + $(this).attr('name') + '=\'' + $(this).attr('value') + '\') or ';                           
                }
           });
           $("#con002 input[type='checkbox']").each(function () {
               if ($(this).attr("checked") == "checked") {
                   foundstr += '(' + $(this).attr('name') + '=\'' + $(this).attr('value') + '\') or ';
               }
           });
           if (($("#con001 input[type='checkbox']:checked").length > 0)
            | ($("#con002 input[type='checkbox']:checked").length > 0)) {
               foundstr += '(1<>1)';
           }
           else {
               foundstr += '(1=1)';
           }
           foundstr += '|' + cPage + '|' + pSize;
           jQuery.ajax({
               type: "post",
               url: "/InteractiveData/MarketingListAjax.aspx",
               data: "paramvalue=" + escape(foundstr) + "&paramtype=getMarketingQueryList",
               /*beforeSend: function () {
               $("#divprocess").show();
               },*/
               success: function (message) {
                   if (message != "error") {
                       var arr = message.split("$");
                       BindQueryList(arr[0]);
                       //查询后保存到临时表中
                       saveTempmarketingfound();
                       SetPager(cPage, arr[1], "#pager_container", pSize);
                       parent.window.iFrameHeight();
                   }
                   else {
                       alert("查询时发生异常！");
                   }
               },
               error: function () {
                   //$("#divpgtsh").html("连接服务是发生异常！");
                   alert("连接服务是发生异常！");
               }
           });
        } // end of foundbut click

        // 绑定查询记录
        function BindQueryList(message) {
            var oHtml = "";
            if (message == "none") { $("#search_result").html("<tr><td colspan=7>未查询到相关记录！</td></tr>"); return; }
            var list = eval("(" + message + ")").MarketingListMana;
            for (var i = 0; i < list.length; i++) {
                var data = list[i];
                oHtml += "<tr>";
                oHtml += "<td>" + data.listpcno + "</td>";
                oHtml += "<td style='display:none;'>" + data.marketingname + "</td>";
                oHtml += "<td style='display:none;'>" + data.marketingperiod + "</td>";
                oHtml += "<td style='display:none;'>" + data.namelistdt + "</td>";
                oHtml += "<td>" + data.listcombination + "</td>";
                oHtml += "<td>" + data.guestno + "</td>";
                oHtml += "<td>" + data.customerchannel + "</td>";
                oHtml += "<td>" + data.salesdepartment + "</td>";
                oHtml += "<td>" + data.contactnumber + "</td>";
                oHtml += "<td>" + data.contactaddress + "</td>";
                oHtml += "<td style='display:none;'>" + data._savesql + "</td>";
                oHtml += "</tr>";
                $("#savesql").val(data._savesql);
            }
            jQuery("#search_result").html(oHtml);            
        }

        //保存查询结果到临时表中
        function saveTempmarketingfound() {
            var pValue = $("#savesql").val();
            jQuery.ajax({
                type: "post",
                url: "/InteractiveData/MarketingListAjax.aspx",
                data: "paramvalue=" + escape(pValue) + "&paramtype=SaveTempMarketingFound",
                /*beforeSend: function () {
                $("#divprocess").show();
                },*/
                success: function (message) {
                    if (message == "SUCCESS") {
                        
                    }
                    else {
                        
                    }
                },
                error: function () {
                    //$("#divpgtsh").html("连接服务是发生异常！");
                }
            });
        }

        /* 验证是否是两位小数 */
        function testmoney(strmon) {
            var reg = new RegExp("^[0-9]+(.[0-9]{0,2})?$");
            if (reg.exec(strmon)) {
                return true;
            }
            else {
                return false;
            }
        }

        function SetPagerNo(cPage) {
            SearchQuery(cPage, _pSize);
        }
        //营销客户来源渠道分布 
        function createchanelchart() {
            var pValue = "F01801";
            jQuery.ajax({
                type: "post",
                url: "/InteractiveData/MarketingListAjax.aspx",
                data: "paramvalue=" + escape(pValue) + "&paramtype=BuilderChartF01801",
                //beforeSend: function () {
                //    $("#divprocess").show();
                //},
                success: function (message) {
                    if (message != "NONE") {
                        var data = eval("(" + message + ")");
                        var chart1 = new Highcharts.Chart({
                            chart: {
                                renderTo: 'container',
                                plotBackgroundColor: null,
                                plotBorderWidth: null,
                                plotShadow: false
                            },
                            credits: {
                                enabled: false     //去掉highcharts网站url  
                            },
                            title: {
                                text: data.charttitle
                            },
                            tooltip: {
                                pointFormat: '<b>{point.percentage}%</b>',
                                percentageDecimals: 1
                            },
                            plotOptions: {
                                pie: {
                                    allowPointSelect: true,
                                    cursor: 'pointer',
                                    dataLabels: {
                                        enabled: true
                                    },
                                    showInLegend: true
                                }
                            },
                            series: [{
                                type: 'pie',
                                name: '',
                                data: [
                                    ['电销', eval(data.seriesdata.split(',')[0])],
                                    ['综拓', eval(data.seriesdata.split(',')[1])],
                                    ['自来', eval(data.seriesdata.split(',')[2])],
                                    ['财富', eval(data.seriesdata.split(',')[3])],
                                    ['其它', eval(data.seriesdata.split(',')[4])]
                                ]
                            }]
                        });
                        //    $("#divprocess").hide();
                    }
                    else {
                        //$("#divpgtsh").html("估算失败！");
                    }
                },
                error: function () {
                    //$("#divpgtsh").html("连接服务是发生异常！");
                }
            });
        }

        //营销客户营业部分布
        function createsalepartmentchart() {
            var pValue = "F01802";
            jQuery.ajax({
                type: "post",
                url: "/InteractiveData/MarketingListAjax.aspx",
                data: "paramvalue=" + escape(pValue) + "&paramtype=BuilderChartF01802",
                //beforeSend: function () {
                //    $("#divprocess").show();
                //},
                success: function (message) {
                    if (message != "NONE") {
                        var data = eval("(" + message + ")");
                        var chart2 = new Highcharts.Chart({
                            chart: {
                                renderTo: 'container1',
                                type: 'column'
                            },
                            credits: {
                                enabled: false     //去掉highcharts网站url  
                            },
                            title: {
                                text: data.charttitle
                            },
                            xAxis: {
                                categories: eval(data.categories),
                                labels: {
                                    rotation: -45,
                                    align: 'right',
                                    style: {
                                        fontSize: '11px',
                                        fontFamily: 'Verdana, sans-serif'
                                    }
                                }
                            },
                            yAxis: {
                                allowDecimals: false,
                                min: 0,
                                title: {
                                    text: ''
                                }
                            },
                            tooltip: {
                                formatter: function () {
                                    return '<b>' + this.x + '</b><br/>' +
                                    this.series.name + ': ' + this.y + '<br/>' +
                                    '合计: ' + this.point.stackTotal;
                                }
                            },
                            plotOptions: {
                                column: {
                                    stacking: 'normal',
                                    dataLabels: {
                                        enabled: true,
                                        color: (Highcharts.theme && Highcharts.theme.dataLabelsColor) || 'white'
                                    }
                                }
                            },
                            series: [{
                                name: data.seriesname,
                                data: eval(data.seriesdata)
                            }]
                        });
                        //    $("#divprocess").hide();
                    }
                    else {
                        //$("#divpgtsh").html("估算失败！");
                    }
                },
                error: function () {
                    //$("#divpgtsh").html("连接服务是发生异常！");
                }
            });
        }
        function savemarketingfound() {
            if ($("#allfoundcon input[type='checkbox']:checked").length == 0) {
                alert("请查询后才能保存查询的数据！");
                return false;
            }
            var sdate = $("#startdate").val();
            var edate = $("#enddate").val();
            var mname = $("#martketingname").val();
            if ((sdate == "") | (edate == "") | (mname == "")) {
                alert("请检查活动周期或者活动名称是否都已填写！");
                return false;
            }
            var pValue = mname + '|' + sdate + '-' + edate;//  + '|' + $("#savesql").val();
            jQuery.ajax({
                type: "post",
                url: "/InteractiveData/MarketingListAjax.aspx",
                data: "paramvalue=" + escape(pValue) + "&paramtype=SaveMarketingFound",
                /*beforeSend: function () {
                $("#divprocess").show();
                },*/
                success: function (message) {
                    if (message == "SUCCESS") {
                        $("#exportoutdata").attr('disabled', eval('false'));
                        BindDictSelect("3", "#marketingname");
                    }
                    else {
                        alert("保存市场营销查询数据时发生异常！");
                    }
                },
                error: function () {
                    //$("#divpgtsh").html("连接服务时发生异常！");
                    alert("连接服务时发生异常！");
                }
            });
        } // end of savemarketingfound

        /*============================导出市场营销查询的数据数据 ================================= */
        function ExportContact() {
            var activename = $("#martketingname").val();
            var sdate = $("#startdate").val();
            var edate = $("#enddate").val();
            var pValue = activename + '|' + sdate + '-' + edate;
            jQuery.ajax({
                type: 'post',
                url: "/InteractiveData/MarketingListAjax.aspx",
                data: "paramvalue=" + escape(pValue) + "&paramtype=exportMarketingFound",
                cache: false,
                success: function (message) {
                    if (message != "error") {
                        var arr = message.split("$");
                        ExportContactToExcel(arr[0]);
                    }
                }, error: function () { }
            });
        }  //end of ExportContact
        function ExportContactToExcel(message) //读取表格中每个单元到EXCEL中  
        {
            try {
                //var curTbl = document.getElementById(tableId);
                var oXL = new ActiveXObject("Excel.Application");
                //创建AX对象excel  
                var oWB = oXL.Workbooks.Add();
                //获取workbook对象  
                var oSheet = oWB.ActiveSheet;

                //var lenRow = rowcount; // curTbl.rows.length;
                //取得表格行数              
                oSheet.Cells(1, 1).value = "清单批次号";
                oSheet.Cells(1, 2).value = "营销活动名称";
                oSheet.Cells(1, 3).value = "营销周期";
                oSheet.Cells(1, 4).value = "名单生成日期";
                oSheet.Cells(1, 5).value = "清单组合";
                oSheet.Cells(1, 6).value = "客户号";
                oSheet.Cells(1, 7).value = "客户渠道";
                oSheet.Cells(1, 8).value = "营业部";
                oSheet.Cells(1, 9).value = "联系电话";
                oSheet.Cells(1, 10).value = "联系地址";
                var list = eval("(" + message + ")").MarketingListMana;
                oSheet.Columns(3).NumberFormatLocal = "@";
                oSheet.Columns(4).NumberFormatLocal = "@";
                oSheet.Columns(6).NumberFormatLocal = "@";
                oSheet.Columns(9).NumberFormatLocal = "@";
                for (var i = 0; i < list.length; i++) {
                    var data = list[i];
                    oSheet.Cells(i + 2, 1).value = data.listpcno;
                    oSheet.Cells(i + 2, 2).value = data.marketingname;
                    oSheet.Cells(i + 2, 3).value = data.marketingperiod;
                    oSheet.Cells(i + 2, 4).value = data.namelistdt;
                    oSheet.Cells(i + 2, 5).value = data.listcombination;
                    oSheet.Cells(i + 2, 6).value = data.guestno;
                    oSheet.Cells(i + 2, 7).value = data.customerchannel;
                    oSheet.Cells(i + 2, 8).value = data.salesdepartment;
                    oSheet.Cells(i + 2, 9).value = data.contactnumber;
                    oSheet.Cells(i + 2, 10).value = data.contactaddress;
                }
                oXL.Visible = true;
                //oXL.Application.Quit();
                //设置excel可见属性  
            } catch (e) {
                if ((! +'\v1')) { //ie浏览器  
                    alert("无法启动Excel，请确保电脑中已经安装了Excel!\n\n如果已经安装了Excel，" + "请调整IE的安全级别。\n\n具体操作：\n\n" + "工具 → Internet选项 → 安全 → 自定义级别 → ActiveX 控件和插件 → 对未标记为可安全执行脚本的ActiveX 控件初始化并执行脚本 → 启用 → 确定");
                } else {
                    alert("请使用IE浏览器进行“导入到EXCEL”操作！");  //方便设置安全等级，限制为ie浏览器  
                }
            } finally {
                oXL.Application.Quit();
            }
        }  // end of ExportContactToExcel

        /*====================================== 导入营销反馈名单 =====================================================*/
        function importmarketingfeedback() {
            var lens, extname;
            lens = $("#exportinfile").val().toLowerCase().length;
            extname = $("#exportinfile").val().substring(lens - 4, lens);
            if ((extname != '.xls') & (extname != 'xlsx')) {
                window.alert('请选择后缀名为(xls)的文件!');
                $("#exportinfile").focus();
                return false;
            }
            var strls = "", i = 2;
            var guestarray = new Array();
            var xls = new ActiveXObject("Excel.Application");
            var xlBook = xls.Workbooks.Open($("#exportinfile").val());
            var xlsheet = xlBook.Worksheets(1);
            while (xlsheet.Cells(i, 1).value != undefined) {
                strls = xlsheet.Cells(i, 1).value + '|'
                            + xlsheet.Cells(i, 2).value + '|' + xlsheet.Cells(i, 3).value + '|'
                            + xlsheet.Cells(i, 4).value + '|' + xlsheet.Cells(i, 5).value + '|'
                            + xlsheet.Cells(i, 6).value + '|' + Todate(xlsheet.Cells(i, 7).value) + '|'
                            + xlsheet.Cells(i, 8).value + '|' + xlsheet.Cells(i, 9).value;
                guestarray.push(strls);
                i++;
            }
            i = i - 2;
            guestarray.push(i);
            jQuery.ajax({
                type: "post",
                url: "/InteractiveData/MarketingListAjax.aspx",
                data: "paramvalue=" + escape(guestarray) + "&paramtype=importmarketingfeedback",
                /*beforeSend: function () {
                    $("#divprocess").show();
                },*/
                success: function (message) {
                    if (message == "SUCCESS") {
                        $("#marketingpg").attr('disabled', eval('false'));
                    }
                    else {
                        
                    }
                },
                error: function () {
                    //$("#divpgtsh").html("连接服务是发生异常！");
                }
            });
            xlBook.Close();
            xls.Application.Quit()
            xls = null;
        } // end of importmarketingfeedback
        function Todate(num) { //Fri Oct 31 18:00:00 UTC+0800 2008 
            num = num + "";
            var date = "";
            var month = new Array();
            month["Jan"] = 1; month["Feb"] = 2; month["Mar"] = 3; month["Apr"] = 4; month["May"] = 5; month["Jan"] = 6;
            month["Jul"] = 7; month["Aug"] = 8; month["Sep"] = 9; month["Oct"] = 10; month["Nov"] = 11; month["Dec"] = 12;
            var week = new Array();
            week["Mon"] = "一"; week["Tue"] = "二"; week["Wed"] = "三"; week["Thu"] = "四"; week["Fri"] = "五"; week["Sat"] = "六"; week["Sun"] = "日";
            str = num.split(" ");
            date = str[5] + "-";
            date = date + month[str[1]] + "-" + str[2] + "-" + str[3];
            //date=date+" 周"+week[str[0]];
            return date;
        }
        /*========================================点击进行营销效果评估==========================================================*/
        function marketingfeedback() {
            buliderTableOne();
            buliderTableTwo();
            //图表展示
            bulidernameamount();
            bulidernamecount();
            bulidernamezhhua();
        }
        //
        function buliderTableOne() {
            var pValue = $("#marketingname").find('option:selected').text();
            jQuery.ajax({
                type: "post",
                url: "/InteractiveData/MarketingListAjax.aspx",
                data: "paramvalue=" + escape(pValue) + "&paramtype=marketingfeedback",
                /*beforeSend: function () {
                $("#divprocess").show();
                },*/
                success: function (message) {
                    if (message != "error") {
                        var arr = message.split("$");
                        BindQueryListsale(arr[0]);
                        parent.window.iFrameHeight();
                    }
                    else {
                        alert("查询时发生异常！");
                    }
                },
                error: function () {
                    //$("#divpgtsh").html("连接服务是发生异常！");
                    alert("连接服务是发生异常！");
                }
            });
        }

        // 绑定查询记录
        function BindQueryListsale(message) {
            var oHtml = "";
            if (message == "none") { $("#search_result_feed").html("<tr><td colspan=9>未查询到相关记录！</td></tr>"); return; }
            var list = eval("(" + message + ")").MarketingFeedbackSaleDepartment;
            for (var i = 0; i < list.length; i++) {
                var data = list[i];
                oHtml += "<tr>";
                oHtml += "<td>" + data.listpcno + "</td>";
                oHtml += "<td>" + data.marketingname + "</td>";
                oHtml += "<td>" + data.saledepartment + "</td>";
                oHtml += "<td>" + data.xfnamelist + "</td>";
                oHtml += "<td>" + data.singlecount + "</td>";
                oHtml += "<td>" + data.ljsaleamount + "</td>";
                oHtml += "<td>" + data.namelistcount + "</td>";
                oHtml += "<td>" + data.namelistamount + "</td>";
                oHtml += "<td>" + data.namelistrate + "</td>";
                oHtml += "<td>" + data.amountrate + "</td>";
                oHtml += "<td>" + data.namezhrate + "</td>";
                oHtml += "</tr>";
            }
            jQuery("#search_result_feed").html(oHtml);
        }

        function buliderTableTwo() {
            var pValue = $("#marketingname").find('option:selected').text();
            jQuery.ajax({
                type: "post",
                url: "/InteractiveData/MarketingListAjax.aspx",
                data: "paramvalue=" + escape(pValue) + "&paramtype=GetEffectEvaluation",
                /*beforeSend: function () {
                $("#divprocess").show();
                },*/
                success: function (message) {
                    if (message != "error") {
                        var arr = message.split("$");
                        BindQueryListEffect(arr[0]);
                        parent.window.iFrameHeight();
                    }
                    else {
                        alert("查询时发生异常！");
                    }
                },
                error: function () {
                    //$("#divpgtsh").html("连接服务是发生异常！");
                    alert("连接服务是发生异常！");
                }
            });
        }
        // 绑定查询记录
        function BindQueryListEffect(message) {
            var oHtml = "";
            var oHtml1 = "";
            if (message == "none") { $("#search_result_effect").html("<tr><td colspan=9>未查询到相关记录！</td></tr>"); return; }
            var list = eval("(" + message + ")").MarketingEffectEvaluation;
            for (var i = 0; i < list.length; i++) {
                var data = list[i];
                oHtml += "<tr>";
                oHtml += "<td>" + data.listpcno + "</td>";
                oHtml += "<td>" + data.marketingname + "</td>";
                oHtml += "<td>" + data.marketingtype + "</td>";
                oHtml += "<td>" + data.guestcount + "</td>";
                oHtml += "<td>" + data.rgguestcount + "</td>";
                oHtml += "<td>" + data.rgrate + "</td>";
                oHtml += "<td>" + data.rgamount + "</td>";
                oHtml += "<td>" + data.rgamountper + "</td>";
                oHtml += "</tr>";
            }
            jQuery("#search_result_effect").html(oHtml);
            if (message != "none") {
                oHtml1 += "<tr>";
                oHtml1 += "<td colspan='5' style='text-align:right;font-weight:bold;'>购买转化率提升值&nbsp;</td>";
                oHtml1 += "<td>" + list[0].otherrate + "</td>";
                oHtml1 += "<td style='text-align:right;font-weight:bold;'>人均认购额差值&nbsp;</td>";
                oHtml1 += "<td>" + list[1].otherrate + "</td>";
                oHtml1 += "</tr>";
                jQuery("#search_foot_effect").html(oHtml1);
            }
        }
        /*========================================效果评估图表=========================================================*/        
        //特选名单认购金额统计
        function bulidernameamount() {
            var pValue = "F01803|" + $("#marketingname").find('option:selected').text();
            jQuery.ajax({
                type: "post",
                url: "/InteractiveData/MarketingListAjax.aspx",
                data: "paramvalue=" + escape(pValue) + "&paramtype=BuilderChartF01803",
                //beforeSend: function () {
                //    $("#divprocess").show();
                //},
                success: function (message) {
                    if (message != "NONE") {
                        var data = eval("(" + message + ")");
                        // Build the chart
                        var chartnameamount = new Highcharts.Chart({
                            chart: {
                                renderTo: 'containernameamount',
                                plotBackgroundColor: null,
                                plotBorderWidth: null,
                                plotShadow: false
                            },
                            credits: {
                                enabled: false     //去掉highcharts网站url  
                            },
                            title: {
                                text: data.charttitle
                            },
                            tooltip: {
                                pointFormat: '<b>{point.percentage}%</b>',
                                percentageDecimals: 1
                            },
                            plotOptions: {
                                pie: {
                                    allowPointSelect: true,
                                    cursor: 'pointer',
                                    dataLabels: {
                                        enabled: true
                                    },
                                    showInLegend: true
                                }
                            },
                            series: [{
                                type: 'pie',
                                name: '',
                                data: [
                                    ['特选', eval(data.seriesdata.split(',')[0])],
                                    ['非特性', eval(data.seriesdata.split(',')[1])]
                                ]
                            }]
                        });
                        //    $("#divprocess").hide();
                    }
                    else {
                        //$("#containernameamount").html('');
                    }
                },
                error: function () {
                    //$("#divpgtsh").html("连接服务是发生异常！");
                }
            });
        }
        //特选名单认购客户数统计
        function bulidernamecount() {
            var pValue = "F01804|" + $("#marketingname").find('option:selected').text();
            jQuery.ajax({
                type: "post",
                url: "/InteractiveData/MarketingListAjax.aspx",
                data: "paramvalue=" + escape(pValue) + "&paramtype=BuilderChartF01804",
                //beforeSend: function () {
                //    $("#divprocess").show();
                //},
                success: function (message) {
                    if (message != "NONE") {
                        var data = eval("(" + message + ")");
                        // Build the chart
                        var chartnamecount = new Highcharts.Chart({
                            chart: {
                                renderTo: 'containernamecount',
                                plotBackgroundColor: null,
                                plotBorderWidth: null,
                                plotShadow: false
                            },
                            credits: {
                                enabled: false     //去掉highcharts网站url  
                            },
                            title: {
                                text: data.charttitle
                            },
                            tooltip: {
                                pointFormat: '<b>{point.percentage}%</b>',
                                percentageDecimals: 1
                            },
                            plotOptions: {
                                pie: {
                                    allowPointSelect: true,
                                    cursor: 'pointer',
                                    dataLabels: {
                                        enabled: true
                                    },
                                    showInLegend: true
                                }
                            },
                            series: [{
                                type: 'pie',
                                name: '',
                                data: [
                                     ['特选', eval(data.seriesdata.split(',')[0])],
                                     ['非特性', eval(data.seriesdata.split(',')[1])]
                                ]
                            }]
                        });
                        //    $("#divprocess").hide();
                    }
                    else {
                        //$("#containernamecount").html("");
                    }
                },
                error: function () {
                    //$("#divpgtsh").html("连接服务是发生异常！");
                }
            });
        }
        //名单转化率对比（特选VS非特选）
        function bulidernamezhhua() {
            var pValue = "F01805|" + $("#marketingname").find('option:selected').text();
            jQuery.ajax({
                type: "post",
                url: "/InteractiveData/MarketingListAjax.aspx",
                data: "paramvalue=" + escape(pValue) + "&paramtype=BuilderChartF01805",
                //beforeSend: function () {
                //    $("#divprocess").show();
                //},
                success: function (message) {
                    if (message != "NONE") {
                        var data = eval("(" + message + ")");
                        // Build the chart containernamezhhua
                        var chartnamezhhua = new Highcharts.Chart({
                            chart: {
                                renderTo: 'containernamezhhua',
                                zoomType: 'xy'
                            },
                            credits: {
                                enabled: false     //去掉highcharts网站url  
                            },
                            title: {
                                text: data.charttitle
                            },
                            xAxis: [{
                                categories: ['特选', '非特选']
                            }],
                            yAxis: [{ // Primary yAxis
                                labels: {
                                    formatter: function () {
                                        return this.value + '';
                                    },
                                    style: {
                                        color: '#89A54E'
                                    }
                                },
                                title: {
                                    text: '倍数',
                                    style: {
                                        color: '#89A54E'
                                    }
                                }
                            }, { // Secondary yAxis
                                title: {
                                    text: '名单转化率',
                                    style: {
                                        color: '#4572A7'
                                    }
                                },
                                labels: {
                                    formatter: function () {
                                        return this.value + '%';
                                    },
                                    style: {
                                        color: '#4572A7'
                                    }
                                },
                                opposite: true
                            }],
                            tooltip: {
                                formatter: function () {
                                    return '' +
                                        this.x + ': ' + this.y +
                                        (this.series.name == '名单转化率' ? '' : '%');
                                }
                            },
                            series: [{
                                name: '倍数',
                                color: '#4572A7',
                                type: 'column',
                                yAxis: 1,
                                data: eval(data.seriesdata.split('$')[0])  //[4.9, 7.5]

                            }, {
                                name: '名单转化率',
                                color: '#89A54E',
                                type: 'spline',
                                data: eval(data.seriesdata.split('$')[1])
                            }]
                        });
                        //    $("#divprocess").hide();
                    }
                    else {
                        //$("#containernamezhhua").html("");
                    }
                },
                error: function () {
                    //$("#divpgtsh").html("连接服务是发生异常！");
                }
            });
        }
        /*=====================================查询历史营销活动=================================================*/
        function foundhistorymekarting() {
            foundhistorytableone();
            foundhistorytabletwo();
            bulidernameamount();
            bulidernamecount();
            bulidernamezhhua();
        }

        function foundhistorytableone() {
            var pValue = $("#marketingname").find('option:selected').text();
            jQuery.ajax({
                type: "post",
                url: "/InteractiveData/MarketingListAjax.aspx",
                data: "paramvalue=" + escape(pValue) + "&paramtype=foundhistorytable1",
                success: function (message) {
                    if (message != "error") {
                        var arr = message.split("$");
                        BindQueryListEffect(arr[0]);
                        parent.window.iFrameHeight();
                    }
                    else {
                        alert("查询时发生异常！");
                    }
                },
                error: function () {
                    //$("#divpgtsh").html("连接服务是发生异常！");
                    alert("连接服务是发生异常！");
                }
            });
        }

        function foundhistorytabletwo() {
            var pValue = $("#marketingname").find('option:selected').text();
            jQuery.ajax({
                type: "post",
                url: "/InteractiveData/MarketingListAjax.aspx",
                data: "paramvalue=" + escape(pValue) + "&paramtype=foundhistorytable2",
                success: function (message) {
                    if (message != "error") {
                        var arr = message.split("$");
                        BindQueryListsale(arr[0]);
                        parent.window.iFrameHeight();
                    }
                    else {
                        alert("查询时发生异常！");
                    }
                },
                error: function () {
                    //$("#divpgtsh").html("连接服务是发生异常！");
                    alert("连接服务是发生异常！");
                }
            });
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="con">
        <ul id="tags">
            <li class="selectTag"><a onclick="selectTag('tagContent0',this)" href="javascript:void(0)">
                市场营销</a></li>
            <li><a onclick="selectTag('tagContent1',this)" href="javascript:void(0)">效果评估</a>
            </li>
        </ul>
        <div id="tagContent">
            <div class="tagContent selectTag" id="tagContent0">
                <div class="toplist">
                    <ul>
                        <li><a><strong>您当前所在的位置：</strong>市场营销 ><strong>市场营销</strong></a></li>
                    </ul>
                </div>
                <div style="clear: both">
                </div>
                <div class="marketbox">
                    <div id="divfoundcon" class="marketboxleft">
                        <ul id="allfoundcon">
                            <li>
                                <div class="marketboxleft01">
                                    <a>
                                        <input name="" type="checkbox" value="ages" title="conditiontwo" />
                                        <label>年龄&nbsp;</label>
                                        <input id="agestart" class="Textfield" name="" type="text" />
                                        -
                                        <input id="ageend" class="Textfield" name="" type="text" />
                                        岁</a> <a>
                                            <input name="" type="checkbox" value="opendays" title="conditiontwo" />
                                            <label>开户时长&nbsp;</label>
                                            <input id="kaihustart" class="Textfield" name="" type="text" />
                                            -
                                            <input id="kaihuend" class="Textfield" name="" type="text" />
                                            天</a> <span>
                                                <input name="" type="checkbox" value="guesttype" title="conditiontwo" />
                                                <label>客户类型&nbsp;</label>
                                                <input id="guestgr" type="radio" name="rd" value="1" txt="个人客户" /><label>个人客户</label>
                                                <input id="guestjg" type="radio" name="rd" value="2" txt="机构客户" /><label>机构客户</label></span>
                                </div>
                                <div style="clear: both">
                                </div>
                            </li>
                            <li>
                                <div id="tabContainer">
                                    <ul>
                                        <li id="tab1"><a href="#" class="on" onclick="switchTab('tab1','con1');this.blur();return false;">
                                            账户信息</a></li>
                                        <li id="tab2"><a href="#" onclick="switchTab('tab2','con2');this.blur();return false;">
                                            投资结构</a></li>
                                        <li id="tab3"><a href="#" onclick="switchTab('tab3','con3');this.blur();return false;">
                                            委托行为</a></li>
                                        <li id="tab4"><a href="#" onclick="switchTab('tab4','con4');this.blur();return false;">
                                            交易行为</a></li>
                                    </ul>
                                    <div style="clear: both">
                                    </div>
                                    <div id="con1">
                                        <a>
                                            <input id="zccheckbox" name="" type="checkbox" value="rijunzich" title="conditionthree" />
                                            <label>资产&nbsp;</label>
                                            <select id="zcselect" class="selectinput" name="">
                                                <option value="1">最近1月日均资产</option>
                                                <option value="2">最近3月日均资产</option>
                                                <option value="3">最近6月日均资产</option>
                                                <option value="4">最近12月日均资产</option>
                                            </select>
                                            <input id="zcstart" class="Textfield0" type="text" />
                                            -
                                            <input id="zcend" class="Textfield0" type="text" title="add"/>
                                            <label>元</label></a> <a>
                                            <input id="yjcheckbox" type="checkbox" value="yongjin" title="conditionthree" />
                                                <label>佣金&nbsp;</label>
                                                <select id="yjselect" class="selectinput" name="">
                                                    <option value="1">最近1月佣金</option>                                   
                                                    <option value="2">最近6月佣金</option>
                                                    <option value="3">最近12月佣金</option>
                                                </select>
                                                <input id="yjstart" class="Textfield0" type="text" />
                                                -
                                                <input id="yjend" class="Textfield0" type="text" title="add" />
                                                元</a> <a>
                                                    <input id="jzjcheckbox" type="checkbox" value="jingzichtr" title="conditionthree" />
                                                    <label>净资金投入&nbsp;</label>
                                                    <select id="jzjselect" class="selectinput" name="">
                                                        <option value="1">最近1月净资金投入</option>
                                                        <option value="2">最近3月净资金投入</option>
                                                        <option value="3">最近6月净资金投入</option>
                                                        <option value="4">最近12月净资金投入</option>
                                                    </select>
                                                    <input id="jzjstart" class="Textfield0" type="text" />
                                                    -
                                                    <input id="jzjend" class="Textfield0" type="text" title="add" />
                                                    元</a> <a>
                                                        <input id="jzjnscheckbox" type="checkbox" value="gusuanzich" title="conditiontwo" />
                                                        <label>估算资产&nbsp;</label>
                                                        <input id="jzjnsstart" class="Textfield0" type="text" />
                                                        -
                                                        <input id="jzjnsend" class="Textfield0" type="text" title="add" />
                                                        元</a>
                                    </div>
                                    <div style="clear: both">
                                    </div>
                                    <div id="con2" style="display: none">
                                        <a>
                                            <input id="chichcheckbox" type="checkbox" value="shymchichang" title="conditiontwo" />
                                            <label>上月末持仓比例&nbsp;</label>
                                            <input id="chichstart" class="Textfield0" type="text" />
                                            -
                                            <input id="chichend" class="Textfield0" type="text" title="add" />
                                            </a> <%--<a>
                                                <input id="mchichcheckbox" type="checkbox" value="shymgpchichang" title="conditiontwo" />
                                                <label>上月末股票持仓&nbsp;</label>
                                                <input id="mchichstart" class="Textfield0" type="text" />
                                                -
                                                <input id="mchichend" class="Textfield0" type="text" title="add" />
                                                元</a> <a>
                                                    <input id="mjjcheckbox" type="checkbox" value="shymjjchichang"  title="conditiontwo"/>
                                                    <label>上月末基金持仓&nbsp;</label>
                                                    <input id="mjjstart" class="Textfield0" type="text" />
                                                    -
                                                    <input id="mjjend" class="Textfield0" type="text" title="add" />
                                                    元</a>--%>
                                    </div>
                                    <div style="clear: both">
                                    </div>
                                    <div id="con3" style="display: none">
                                        <a>
                                            <input id="wtmrcheckbox" type="checkbox" value="wtmrzztbb" title="conditiontwo" />
                                            <label>近3个月委托买入追涨停板占比&nbsp;</label>
                                            <input id="wtmrstart" class="Textfield0" type="text" />
                                            -
                                            <input id="wtmrend" class="Textfield0" type="text" title="add" />
                                            </a>
                                    </div>
                                    <div style="clear: both">
                                    </div>
                                    <div id="con4" style="display: none">
                                        <a>
                                            <input id="hshlcheckbox" type="checkbox" value="huanshoulv" title="conditionthree" />
                                            <label>换手率&nbsp;</label>
                                            <select id="hshlselect" class="selectinput" name="">
                                                <option value="1">最近1月换手率</option>
                                                <option value="2">最近3月换手率</option>
                                                <option value="3">最近6月换手率</option>
                                                <option value="4">最近12月换手率</option>
                                            </select>
                                            <input id="hshlstart" class="Textfield0" type="text" />
                                            -
                                            <input id="hshlend" class="Textfield0" type="text" title="add" /></a> <a>
                                                <input id="yklcheckbox" type="checkbox" value="yingkuilv" title="conditionthree" />
                                                <label>盈亏率&nbsp;</label>
                                                <select id="yklselect" class="selectinput" name="">
                                                    <option value="1">最近1月盈亏率</option>
                                                    <option value="2">最近3月盈亏率</option>
                                                    <option value="3">最近6月盈亏率</option>
                                                    <option value="4">最近12月盈亏率</option>
                                                </select>
                                                <input id="yklstart" class="Textfield0" type="text" />
                                                -
                                                <input id="yklend" class="Textfield0" type="text" title="add" /></a> <a>
                                                <input id="xgsgcheckbox" type="checkbox" name="xgsgcheckbox" value="xingshengou" title="conditiontwo" />
                                                <label>近3个月是否有新股申购&nbsp;</label>
                                                <select id="xgsgselect" class="selectinput" name="">
                                                        <option value="1">是</option>
                                                        <option value="2">否</option>
                                                </select></a>
                                                <%--<input id="xgsgstart" class="Textfield0" type="text" />
                                                -
                                                <input id="xgsgend" class="Textfield0" type="text" title="add" />--%>
                                    </div>
                                    <div style="clear: both">
                                    </div>
                                </div>
                            </li>
                            <li>
                                <div id="tabContainer00">
                                    <ul>
                                        <li id="tab001"><a href="#" class="on" onclick="switchTab00('tab001','con001');this.blur();return false;">
                                            分群策略一</a></li>
                                        <li id="tab002"><a href="#" onclick="switchTab00('tab002','con002');this.blur();return false;">
                                            分群策略二</a></li>
                                    </ul>
                                </div>
                                <div style="clear: both">
                                </div>
                                <div id="con001">
                                    <a>
                                        <input id="jcscheckbox" type="checkbox" name="population1" value="ZT" /><label>有净创收</label> </a><a>
                                        <input id="wjcscheckbox" type="checkbox" name="population1" value="ZL" /><label>无净创收有资产</label></a> <a>
                                        <input id="wzcyqcheckbox" type="checkbox"  name="population1" value="CF" /><label>无资产有钱</label></a> <a>
                                        <input id="wjcswzccheckbox" type="checkbox" name="population1" value="DX" /><label>无净创收无资产</label></a>
                                </div>
                                <div style="clear: both">
                                </div>
                                <div id="con002" style="display: none">
                                    <a>
                                        <input id="gdylcheckbox" type="checkbox" name="population2" value="ZT" /><label>高端盈利</label></a><a>
                                        <input id="gddpcheckbox" type="checkbox" name="population2" value="ZL" /><label>高端打平</label></a> <a>
                                        <input id="gdkscheckbox" type="checkbox" name="population2" value="CF" /><label>高端亏损</label></a> <a>
                                        <input id="qzgdcheckbox" type="checkbox" name="population2" value="DX" /><label>潜在高端</label></a> <a>
                                        <input id="ddylcheckbox" type="checkbox" name="population2" value="DY" /><label>低端盈利</label></a> <a>
                                        <input id="dddpcheckbox" type="checkbox" name="population2" value="DD" /><label>低端打平</label></a> <a>
                                        <input id="ddkscheckbox" type="checkbox" name="population2" value="DK" /><label>低端亏损</label></a> <a>
                                        <input id="xmcheckbox" type="checkbox" name="population2" value="XM" /><label>休眠</label></a>
                                    <div style="clear: both">
                                    </div>
                                </div>
                            </li>
                            <li><span class="marketleftfund"><a>基金推荐模型</a></span>
                                <div class="marketboxleft01">
                                    <a>
                                        <input id="byyxcheckbox" type="checkbox" name="countmm1" value="countmm" />
                                        <label>用于本月营销</label></a> <a>
                                            <input id="xyyxcheckbox" type="checkbox" name="countmm2" value="countmm" />
                                            <label>用于下月营销</label></a> <span>
                                                <%--<input id="jjkqcheckbox" type="checkbox" title="conditionone" />--%>
                                                <label>基金客群规模筛选&nbsp;</label><select id="jjkqselect" class="selectinput" name="">
                                                    <option value = "1">成交可能性前1%</option>
                                                    <option value = "2">成交可能性前2%</option>
                                                    <option value = "3">成交可能性前3%</option>
                                                    <option value = "4">成交可能性前4%</option>
                                                    <option value = "5">成交可能性前5%</option>
                                                    <option value = "6">成交可能性前6%</option>
                                                    <option value = "7">成交可能性前7%</option>
                                                    <option value = "8">成交可能性前8%</option>
                                                    <option value = "9">成交可能性前9%</option>
                                                    <option value = "10">成交可能性前10%</option>
                                                </select>
                                            </span>
                                    <div style="clear: both">
                                    </div>
                                </div>
                            </li>
                            <li>
                                <div class="marketboxleft01">
                                    <a>
                                        <input id="gpjjcheckbox" type="checkbox" title="conditionno" name="jjkqgmsx" value="gpxjjmx" />
                                        <label>股票型基金购买模型</label> </a><a>
                                        <input id="jjrgcheckbox" type="checkbox" title="conditionno" name="jjkqgmsx" value="jjrgmx" />
                                        <label>基金认购模型</label></a> <a>
                                        <input id="hhjjcheckbox" type="checkbox" title="conditionno" name="jjkqgmsx" value="hhxjjmx" />
                                        <label>混合型基金购买模型</label></a> <a>
                                        <input id="jjsgcheckbox" type="checkbox" title="conditionno" name="jjkqgmsx" value="jjsgmx"  />
                                        <label>基金申购模型</label></a> <a>
                                        <input id="zjhbcheckbox" type="checkbox" title="conditionno" name="jjkqgmsx" value="jjhbmx" />
                                        <label>债券与货币型基金购买模型</label></a> <a>
                                        <input id="jjmrcheckbox" type="checkbox" title="conditionno" name="jjkqgmsx" value="jjmrmx" />
                                        <label>基金买入模型</label> </a>
                                    <div style="clear: both">
                                    </div>
                                </div>
                            </li>
                        </ul>
                    </div>
                    <div class="marketboxright">
                        <div class="marketboxrightbox">
                            <span>筛选条件展示，本处展示左边已经勾选的的条件:</span>
                            <div id="displayselcon" style="width:100%;">
                            </div>
                            <%--<ul>                                
                                <li><a>--%>
                            <input id="foundbut" class="marketboxrightinput" type="button" onclick="foundbutclick();" value="筛 选" /><%--</a></li>--%>
                            <%--</ul>--%>
                        </div>
                        <div style="clear: both">
                        </div>
                        <div class="marketboxrightcontent">
                            <div class="marketboxrightcontent0">
                                <a>营销名单 基本统计</a>
                                <ul>
                                    <li>
                                        <div class="marketblock">
                                            <%--<div class="marketblock_top">
                                                <a>营销客户来源渠道分布 </a><span>
                                                    <img alt="" src="/Images/bigicon0.png" width="14" height="14" /></span></div>--%>
                                            <div id="container" class="marketblockcontent">
                                                <%--<img alt="" src="/Images/marketfrom.png" width="128" height="139" />--%>
                                            </div>
                                        </div>
                                    </li>
                                    <li>
                                        <div class="marketblock">
                                            <%--<div class="marketblock_top">
                                                <a>营销客户营业部分布 </a><span>
                                                    <img alt="" src="/Images/bigicon0.png" width="14" height="14" /></span></div>--%>
                                            <div id="container1" class="marketblockcontent">
                                                <%--<img alt="" src="/Images/marketfrom0.png" width="328" height="139" />--%>
                                            </div>
                                        </div>
                                    </li>
                                </ul>
                                <div style="clear: both">
                                </div>
                            </div>
                            <div class="tablebox"><%-- tabler class="accordion_child0"--%>
                                <table class="tabler" id="hacker" cellspacing="0">
                                    <thead>
                                            <tr class="trbj">
                                                <td>清单批次号</td>
                                                <td style="display:none;">A</td>
                                                <td style="display:none;">B</td>
                                                <td style="display:none;">C</td>
                                                <td>清单组合</td>
                                                <td>客户号</td>
                                                <td>客户渠道</td>
                                                <td>营业部</td>
                                                <td>联系电话</td>
                                                <td>联系地址</td> 
                                                <td style="display:none;">D</td>                                              
                                            </tr>
                                    </thead>
                                    <tbody id="search_result">
                                    </tbody>                               
                                </table>
                                <div class="pagination" id="pagination-clean">
                                    <div id="pager_container">
                                    </div>
                                    <input type="hidden" id="savesql" />
                                </div>
                                <div class="markettablebottom">
                                    <div class="markettableleft">请选择活动周期（必填）：
                                        <input type="text" id="startdate" maxlength="20"
                                            name="CheckInDate" class="f_i_date en_f_i_date" /><label style="color:Red;">*</label><%--method="txtEnterDate" method="txtOutDate"--%>
                                            -<input type="text" 
                                                id="enddate" maxlength="20" name="CheckOutDate" class="f_i_date en_f_i_date" />
                                                <label style="color:Red;">*</label>
                                        <p>
                                            请选择活动名称（必填）：
                                            <input type="text" id="martketingname" maxlength="20"
                                                name="CheckInDate" class="f_i_date en_f_i_date" /><label style="color:Red;">*</label> <%--method="txtEnterDate"--%>
                                        </p>
                                        <p class="Note">
                                            注：通过活动名称，可以查询历史数据的效果评估！
                                        </p>
                                    </div><div class="markettableright">
                                        <input class="markettablebottominput" name="" id="savefounddata"
                                               onclick="savemarketingfound();" type="button" value="保存数据" />
                                        <input class="markettablebottominput" name="" id="exportoutdata"
                                               onclick="ExportContact();" type="button" value="导出数据" /></div>
                                    <div style="clear: both">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
  
  <div class="tagContent" id="tagContent1">
     <div class="toplist">
     <ul>
      <li><a><strong>您当前所在的位置：</strong>市场营销 ><strong>效果评估</strong></a></li>
     </ul>
     
    </div>
    <div style="clear:both"></div>
     <div class="Assesstablebox">
      <div class="Assessboxtop">
       <div class="Assessboxtopleft">
       <div class="Assessboxtopleft0"><a>历史营销活动名称：</a>
        <div id="divselect">
         <select id="marketingname"></select>  
</div>
<span><input id="foundhistory" class="Assessinput" onclick="javascript:foundhistorymekarting();" 
             name="" type="button" value="查 询"  /></span>
       </div>
       </div>
       <div class="Assessboxtopright">
       <input type="file" id="exportinfile" style="width:200px;" />
       <input name="" type="button" onclick="importmarketingfeedback();" value="请导入营销反馈名单"  /> 
       <input id="marketingpg" name="" type="button" onclick="marketingfeedback();" value="点击进行营销效果评估"  /></div>
<div style="clear:both"></div>
</div>
<div class="Graysharp color2">
        <b class="b1"></b><b class="b2"></b><b class="b3"></b><b class="b4"></b> 
      <div class="content">  
              <div class="Assesscontent-top">特选名单组与非模型名单组认购金额、人数、转化率比较如下图</div>
              <div style="clear:both"></div>
              <table class="Assesstabler" id="Table1" cellspacing="0">
                <tr class="trbj">							
                    <td class="DmpData1">清单批次号</td>
                    <td class="DmpData1">营销活动名称</td>
                    <td class="DmpData1">类型</td>
                    <td class="DmpData1">名单数</td>
                    <td class="DmpData1">认购客户数</td>
                    <td class="DmpData1">认购转化率</td>
                    <td class="DmpData1">累计销售额(万元)</td>
                    <td class="DmpData1">人均认购额(万元)</td>

                </tr>
                   <tbody id="search_result_effect">
                   </tbody> 
                   <tfoot id="search_foot_effect">
                   </tfoot>     
            </table>
              
        </div>
        <b class="b5"></b><b class="b6"></b><b class="b7"></b><b class="b8"></b>    
    </div>


<div class="Graysharp color2">
        <b class="b1"></b><b class="b2"></b><b class="b3"></b><b class="b4"></b> 
      <div class="content">  
              <div class="Assesscontent-top">图1：特选名单组与非特选名单组效果对比</div>
              <div style="clear:both"></div>
              <div class="Graycontentbox">
               <ul>
                <li><div id="containernameamount" class="block">
                     <%--<div class="block_top"><a>存量客户与交易客户年龄统计</a><span><img alt="" src="/Images/bigicon0.png" width="14" height="14" /></span></div>
                     <div class="blockcontent"><img alt="" src="/Images/gray0.png" width="447" height="208" /></div>
                  <span><a class="blue">存量客户</a><a class="red">交易客户</a></span>--%>
                </div></li>
                <li>
                 <div id="containernamecount" class="block">
                     <%--<div class="block_top"><a>存量客户与交易客户来源渠道统计</a><span><img alt="" src="/Images/bigicon0.png" width="14" height="14" /></span></div>
                     <div class="blockcontent"><img alt="" src="/Images/gray0.png" width="447" height="208" /></div>
                  <span><a class="blue">存量客户</a><a class="red">交易客户</a></span>--%>
                </div>
                </li>
                <li>
                 <div id="containernamezhhua" class="block">
                     <%--<div class="block_top"><a>存量客户与交易客户开户时长统计</a><span><img alt="" src="/Images/bigicon0.png" width="14" height="14" /></span></div>
                     <div class="blockcontent"><img alt="" src="/Images/gray0.png" width="447" height="208" /></div>
                  <span><a class="blue">存量客户</a><a class="red">交易客户</a></span>--%>
                </div>
                </li>
               </ul>
 
              </div>
        </div>
        <b class="b5"></b><b class="b6"></b><b class="b7"></b><b class="b8"></b>    
    </div> 
    

<div class="Graysharp color2">
        <b class="b1"></b><b class="b2"></b><b class="b3"></b><b class="b4"></b> 
      <div class="content">  
              <div class="Assesscontent-top">表2：特选名单组与非特选名单组营业部统计</div>
              <div style="clear:both"></div>
              <table class="Assesstabler" id="Table2" cellspacing="0">
                <tr class="trbj">                										
                    <td class="DmpData1">清单批次号</td>
                    <td class="DmpData1">营销活动名称</td>
                    <td class="DmpData1">营业部</td>
                    <td class="DmpData1">下发名单</td>
                    <td class="DmpData1">签约人次</td>
                    <td class="DmpData1">累计销售金额(万元)</td>
                    <td class="DmpData1">名单组签约人次</td>
                    <td class="DmpData1">名单组认购金额(万元)</td>
                    <td class="DmpData1">名单占比</td>
                    <td class="DmpData1">名单认购金额占比</td>
                    <td class="DmpData1">名单转化率</td>
                </tr>
                   <tbody id="search_result_feed">
                   </tbody>                                    
                </table>
        </div>
        <b class="b5"></b><b class="b6"></b><b class="b7"></b><b class="b8"></b>    
    </div>
    </div>
         </div>
      </div>    
              <div style="clear: both">
        </div>
          <div class="foot">
        <a>版权所有：深圳华策略科技有限公司</a></div>               
     <%--</div>
    </div>
</div>
</div>
    </div>--%>
    </form>
</body>
</html>
